#include<func.h>
#include<sys/wait.h>
int main(void)
{

    //父进程
    if(fork())
    {
        int status;
        wait(&status);
        printf("normal exit! return value = %d\n",WEXITSTATUS(status));
    }
    else
    {
        sleep(10);
        exit(-1);//255
    }
    return 0;
}